package po;


//import java.sql.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Article {
    //实体类的属性和表的字段名称一一对应
    private int id;
    private String title;
    private String author;
    private String details;
    private Date date;
    private String note;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    @Override
    public String toString() {
        return "Article{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", details='" + details + '\'' +
                ", date=" + date +
                ", note='" + note + '\'' +
                '}';
    }
}
